<form action="<?php echo base_url('home/request')?>"  id="frm_Request_New" method="post" class="" onsubmit="return false;">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <img src="<?php echo base_url('assets/home/images/logo.png');?>" class="img-reponsive" alt="logo">
  </div>
  <div class="modal-body">
		<div class="form-group <?php if(form_error('email') != NULL){echo 'has-error';}?> text-center">
		    <label class="col-sm-3"  for="exampleInputEmail1"><span style="color: red;">*</span> Your Email</label>
		    <div class="input-group col-sm-9">
		    	<span class="input-group-addon "><i class="fa fa-envelope-o"></i></span>
			    <input type="email" class="form-control" id="exampleInputEmail1"  name="email"  placeholder="Enter email" value ="<?php if(!empty($this->session->userdata('session_email'))){echo $this->session->userdata('session_email');}else{ echo set_value('email');}?>">
		    </div>
		    <?php echo form_error('email','<p class="help-block">','</p>');?>
		</div>
		<div class="form-group <?php if(form_error('contents') != NULL){echo 'has-error';}?> text-center"> 
		    <label class="col-sm-3" for="exampleInputEmail1"><span style="color: red;">*</span> Content</label>
		    <div class="input-group  col-sm-9">
		    	<textarea name="contents" id="" cols="30" rows="10" class="form-control" ><?php echo set_value('contents');?></textarea>
		    </div>
		    <?php echo form_error('contents','<p class="help-block">','</p>');?>
		</div>
   </div>
  <div class="modal-footer ">
  	<div class="row text-center">
  		<button type="button" name="request" class="btn btn-primary btn-add btn-request" ><i class="fa fa-check-circle"></i> Commit </button>
   		<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  	</div>
  </div>
</form>
<script src="<?php echo base_url('assets/home')?>/js/scripts.js" type="text/javascript"></script>